package lab02.Test20;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/10/30.
 */
public class Test20 {
    public static void main(String[] args) {
        System.out.println("请输入字符串(中英文)：");
        Scanner sc = new Scanner(System.in);
        String string = sc.nextLine();
        for (int i=0;i<string.length()-1;i++) {
            if (string.charAt(i) >= 'A' && string.charAt(i) <= 'Z') {
            }
            if (string.charAt(i) >= 'a' && string.charAt(i) <= 'z') {
            }
            else System.out.print(string.charAt(i));
        }
    }
}
